package com.mingweicai.intergration.springaop.demo2;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Main {

  public static void main(String args[]){
    AnnotationConfigApplicationContext configApplicationContext =
        new AnnotationConfigApplicationContext(BeanConfiguration.class);
    BusinessService service = configApplicationContext.getBean(BusinessService.class);
    service.mainLogic("执行主方法");
    configApplicationContext.close();
    }
}
